package com.my.quartz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：seagull
 * @date ：Created in 2022/2/3
 * @description：
 * @modified By：
 */
@SpringBootApplication
@MapperScan(value = {"com.my.quartz.boot.mapper"})
@EnableTransactionManagement
@EnableScheduling
public class QuartZApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        ConfigurableApplicationContext app = SpringApplication.run(QuartZApplication.class, args);
        System.out.println(">>>>>>>>>>>>>>>>>启动成功<<<<<<<<<<<<<<<<<<<<");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        SpringApplicationBuilder sources = builder.sources(QuartZApplication.class);
        return sources;
    }
}
